package edu.avans.hartigehap.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.NamedQuery;

@Entity
@NamedQuery(
		name = "MenuTopping.findToppings",
		query = "SELECT w FROM MenuTopping w")
public class MenuTopping extends WebMenuItem implements Serializable{
	private static final long serialVersionUID = 1L;

	private BigDecimal price;
	private String name;
	
	public MenuTopping() {
		
	}
	
	public MenuTopping(BigDecimal price, String toppingName) {
		this.price = price;
		this.name = toppingName;
	}
	
	@Override
	public BigDecimal getPrice() {
		return price;
	}

	@Override
	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Override
	public String getDishName() {
		return name;
	}

	@Override
	public void setDishName(String name) {
		this.name = name;
	}

}
